import request from "./../request.js";

//发布族志文章
export function createArticle(data)
{
  return request.post("Article/createArticle", data, { noAuth: true});
}

//族志文章列表
export function getArticleList(data)
{
  return request.post("Article/getArticleList", data, { noAuth: true});
}


//查看我发布的族志
export function getMySendByFamilyLog(data)
{
  return request.post("Article/getMySendByFamilyLog", data, { noAuth: true});
}

//文章详情
// article_id=》文章id
export function detail(data)
{
  return request.post("Article/detail", data, { noAuth: true});
}


//收藏文章
// article_id=》文章id
export function collectArticle(data)
{
  return request.post("Article/collectArticle", data, { noAuth: true});
}


// 获取收藏文章列表
export function getCollectArticle(data)
{
  return request.post("Article/getCollectArticle", data, { noAuth: true});
}


// 取消收藏
export function cancelCollectArticle(data)
{
  return request.post("Article/cancelCollectArticle", data, { noAuth: true});
}

// 获取评论列表
export function getCommentList(data)
{
  return request.post("Comment/getCommentList", data, { noAuth: true});
}
// 提交评论
export function submitComment(data)
{
  return request.post("Comment/submitComment", data, { noAuth: true});
}
// 删除评论
export function delComment(data)
{
  return request.post("Comment/del", data, { noAuth: true});
}
// 回复评论
export function replyComment(data)
{
  return request.post("Comment/replyComment", data, { noAuth: true});
}
// 点赞
export function likeComment(data)
{
  return request.post("Comment/like", data, { noAuth: true});
}